package com.printeverywhere.action;

import com.printeverywhere.delegator.CommonFunctionDelegator;
import com.printeverywhere.dto.AdminDetails;
import com.printeverywhere.util.AdminConstants;

public class CopyrigthAction extends FrontBaseSupport{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	public CopyrigthAction() {
		super(false, false);
	}

	private AdminDetails adminDetails;

	@Override
	public String execute() throws Exception {
		try {
			adminDetails = (AdminDetails) CommonFunctionDelegator.getAllfromtable(AdminDetails.class.getName()).get(AdminConstants.ZERO_NUMBER);
		} catch (Exception e) {
			return INPUT;
		}
		return SUCCESS;
	}

	public AdminDetails getAdminDetails() {
		return adminDetails;
	}

	public void setAdminDetails(AdminDetails adminDetails) {
		this.adminDetails = adminDetails;
	}
}
